#include "balcaojoshua.h"
#include <GL/glu.h>
#include "gllib/Objects.h"


void balcaoJoshua::draw(){
    glPushMatrix();

    glEnable(GL_COLOR_MATERIAL);
    glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);

//    float mat_specular[] = {0.992157, 0.941176, 0.807843, 1.0};
//    float shininess = 10;
    float mat_specular[] = {0.7, 0.7, 0.7, 1.0};
    float shininess = 20;

    glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
    glMaterialf(GL_FRONT, GL_SHININESS, shininess);

    glPushMatrix();
    glColor3f(0.4, 0.0, 0.0);
    glScalef(0.25,1.0,0.8);
    gllibCube(2.0);
    glPopMatrix();

    glPushMatrix();
//    glColor3f(1.0, 0.0, 0.0);
    glScalef(1.0,1.0,0.25);
    glTranslatef(1.2,0.0,2.2);
    gllibCube(2.0);
    glPopMatrix();

//    glPushMatrix();
//    glColor3f(1.0, 0.0, 0.0);
//    glScalef(0.25,1.0,0.8);
//    glTranslatef(7.8,0.0,0.0);
//    gllibCube(2.0);
//    glPopMatrix();

    glDisable(GL_COLOR_MATERIAL);



    glPopMatrix();
    glLoadIdentity();
}
